package review;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrinArr {
    public static void main(String[] args) {
        String []ar=new String[10];

        ar[0]="老王";
        ar[1]="老刘";
        System.out.println(ar[0]);
        System.out.println(ar[2]);
        for (int i = 0; i < ar.length; i++) {
            if(ar[i]==null){
                System.out.println("在"+i+"这个位置找到了空位置");
                break;
            }
        }
    }
}
